package com.pentalog.util;

public class TimerGinet {
	private String name;
	long startTime = 0;
	long stopTime = 0;

	public TimerGinet(String name) {
		super();
		this.name = name;
		startTime = System.nanoTime();
	}
	
	public void done(){
		stopTime = System.nanoTime();
		long elapsedTime = (stopTime - startTime);
		double seconds = (double)elapsedTime / 1000000.0;
		System.out.println(name +": "+ seconds);
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}
